import request from '@/utils/request'
import {
  ResultLoginVo,
  DeepRequired,
  EmailAndCaptchaDto,
} from '../../interface'

/**
 * 用户邮箱登录
 * /auth/login/email
 */
export function postAuthLoginEmail(input: EmailAndCaptchaDto) {
  return request.post<DeepRequired<ResultLoginVo>>(`/auth/login/email`, input)
}
